import Mock from 'mockjs'

Mock.mock(/mock\/userInfo1/, 'get', function () {
  console.log('mock1 ???')
  return {
    data: {
      code: 0,
      data: {
        tableList: [{
          quoteNumber: 'Q001',
          projectName: '项目A',
          date: '2024-09-01',
          customer: '客户X',
          contact: '联系人Y',
          maker: '制作方Z',
          responsiblePerson: '责任人M',
          projectQuote: 5000,
          status: '待提交',
          action: '查看'
        },
        {
          quoteNumber: 'Q002',
          projectName: '项目B',
          date: '2024-09-02',
          customer: '客户Y',
          contact: '联系人Z',
          maker: '制作方X',
          responsiblePerson: '责任人N',
          projectQuote: 7500,
          status: '已退回',
          action: '修改'
        },
        {
          quoteNumber: 'Q003',
          projectName: '项目C',
          date: '2024-09-03',
          customer: '客户Z',
          contact: '联系人X',
          maker: '制作方Y',
          responsiblePerson: '责任人O',
          projectQuote: 10000,
          status: '待签核',
          action: '审核'
        },
        {
          quoteNumber: 'Q004',
          projectName: '项目D',
          date: '2024-09-04',
          customer: '客户A',
          contact: '联系人Y',
          maker: '制作方Z',
          responsiblePerson: '责任人P',
          projectQuote: 12000,
          status: '已通过',
          action: '确认'
        },
        {
          quoteNumber: 'Q005',
          projectName: '项目E',
          date: '2024-09-05',
          customer: '客户B',
          contact: '联系人Z',
          maker: '制作方X',
          responsiblePerson: '责任人Q',
          projectQuote: 9000,
          status: '已驳回',
          action: '重提'
        }],
        categoryList: [
          { status: '待签核', count: 10, type: "daishenhe" },
          { status: '已通过', count: 10, type: "yitongguo" },
          { status: '已驳回', count: 3, type: "yibohui" }
        ]
      }
    }
  }
})
Mock.mock(/mock\/userInfo/, 'get', function () {
  console.log('mock ???')
  return {
    data: {
      code: 0,
      data: {
        tableList: [{
          quoteNumber: 'Q001',
          projectName: '项目A',
          date: '2024-09-01',
          customer: '客户X',
          contact: '联系人Y',
          maker: '制作方Z',
          responsiblePerson: '责任人M',
          projectQuote: 5000,
          status: '待提交',
          action: '查看'
        },
        {
          quoteNumber: 'Q002',
          projectName: '项目B',
          date: '2024-09-02',
          customer: '客户Y',
          contact: '联系人Z',
          maker: '制作方X',
          responsiblePerson: '责任人N',
          projectQuote: 7500,
          status: '已退回',
          action: '修改'
        },
        {
          quoteNumber: 'Q003',
          projectName: '项目C',
          date: '2024-09-03',
          customer: '客户Z',
          contact: '联系人X',
          maker: '制作方Y',
          responsiblePerson: '责任人O',
          projectQuote: 10000,
          status: '待签核',
          action: '审核'
        },
        {
          quoteNumber: 'Q004',
          projectName: '项目D',
          date: '2024-09-04',
          customer: '客户A',
          contact: '联系人Y',
          maker: '制作方Z',
          responsiblePerson: '责任人P',
          projectQuote: 12000,
          status: '已通过',
          action: '确认'
        },
        {
          quoteNumber: 'Q005',
          projectName: '项目E',
          date: '2024-09-05',
          customer: '客户B',
          contact: '联系人Z',
          maker: '制作方X',
          responsiblePerson: '责任人Q',
          projectQuote: 9000,
          status: '已驳回',
          action: '重提'
        }],
        categoryList: [
          { status: '待提交', count: 20, type: "daitijiao" },
          { status: '已退回', count: 5, type: "yituihui" },
          { status: '待签核', count: 10, type: "daishenhe" },
          { status: '已通过', count: 10, type: "yitongguo" },
          { status: '已驳回', count: 3, type: "yibohui" }
        ]
      }
    }
  }
})
